<%@ page language="java" pageEncoding="UTF-8"
	errorPage="/ui/defaultException.jsp"%>
<%@include file="/ui/tags.jsp"%>
<!-- JiaThis Button BEGIN -->
<div class="jiathis_style">
	<a class="jiathis_button_qzone">
	</a>
	<a onclick="shareSina();" href="javascript:void(0);">
		<span class="jiathis_txt jtico jtico_tsina"></span>
	</a>
	<a onclick="shareTencent();" href="javascript:void(0);">
		<span class="jiathis_txt jtico jtico_tqq"></span>
	</a>
	
	<a class="jiathis_button_weixin"></a>
	<a class="jiathis_button_renren"></a>
	<!-- 
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
    <a class="jiathis_counter_style"></a>
    -->
</div>

<script type="text/javascript">
	 var jiathis_config = {
	 }
	 
	 function shareSina(){
		 if (typeof(sinaShareData) == 'undefined'){
			 alert("暂时不能分享，非常抱歉!");
		 }else{
			 sinaShareData.ori_url = window.location.href;
			 $.post('${cpath}/account/share',
					 sinaShareData,

					 function (data, textStatus){
					 // data 可以是 xmlDoc, jsonObj, html, text, 等等.
					 //this; // 这个Ajax请求的选项配置信息，请参考jQuery.get()说到的this
					 	if (data.resultCode == '00000000'){
					 		alert(data.resultMsg);
					 	}else if (data.resultCode == '222222222'){
					 		window.location.href = data.resultMsg;
					 	}else{
					 		alert(data.resultMsg);
					 	}
					 }, 
					 "json");
		 }
	 }
	 
	 function shareTencent(){
		 if (typeof(tencentShareData) == 'undefined'){
			 alert("暂时不能分享，非常抱歉!");
		 }else{
			 tencentShareData.ori_url = window.location.href;
			 $.post('${cpath}/account/share',
					 tencentShareData,
					 function (data, textStatus){
					 // data 可以是 xmlDoc, jsonObj, html, text, 等等.
					 //this; // 这个Ajax请求的选项配置信息，请参考jQuery.get()说到的this
					 	if (data.resultCode == '00000000'){
					 		alert(data.resultMsg);
					 	}else if (data.resultCode == '222222222'){
					 		window.location.href = data.resultMsg;
					 	}else{
					 		alert(data.resultMsg);
					 	}
					 }, 
					 "json");
		 }
	 }
	 
	 function shareQZone(){
		 if (typeof(qzoneShareData) == 'undefined'){
			 alert("暂时不能分享，非常抱歉!");
		 }else{
			 qzoneShareData.ori_url = window.location.href;
			 $.post('${cpath}/account/share',
					 qzoneShareData,
					 function (data, textStatus){
					 // data 可以是 xmlDoc, jsonObj, html, text, 等等.
					 //this; // 这个Ajax请求的选项配置信息，请参考jQuery.get()说到的this
					 	if (data.resultCode == '00000000'){
					 		alert(data.resultMsg);
					 	}else if (data.resultCode == '222222222'){
					 		window.location.href = data.resultMsg;
					 	}else{
					 		alert(data.resultMsg);
					 	}
					 }, 
					 "json");
		 }
	 }
</script>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js"
	charset="utf-8"></script>
<!-- JiaThis Button END -->